package com.msh.frame.web.aspect;

import com.msh.frame.common.aspect.AbstractInfoLoggerAspect;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;


/**
 * @author shihu
 * @email m-sh@qq.com
 * @date 2020-01-06 11:11:34
 */
@Aspect
@Order(10)
public class ServiceInfoLogAspect extends AbstractInfoLoggerAspect {

  @Override
  @Pointcut("this(com.msh.frame.client.base.BaseService)")
  protected void pointcut() {
  }

  @Override
  protected boolean isSkipArgs(Object args) {
    return super.isSkipArgs(args) || args instanceof ServletRequest || args instanceof ServletResponse;
  }
}
